package com.examples.controller;

import com.examples.service.FeignProduceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/customer")
public class ConsumController {


    @Autowired
    private FeignProduceService feignProduceService;

    @RequestMapping("/hello")
    public String getNmae() {
        String result = feignProduceService.hello("aaa");
        return result;
    }
}
